package com.hmall.service;

import com.hmall.mapper.MallPriceMapper;
import com.hmall.model.MallPrice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PriceService {

    private final
    MallPriceMapper mallPriceMapper;

    @Autowired
    public PriceService(MallPriceMapper mallPriceMapper) {
        this.mallPriceMapper = mallPriceMapper;
    }


    public List<MallPrice> findPriceList(Integer productId) {

        return mallPriceMapper.findPriceList(productId);
    }
}
